
        module.exports = class extends baseController {
            constructor() {
                super();
                this.router.all('/index', this.index.bind(this));
                return this.router;
            }
        
            static init() {
                return new this();
            }

           async index(req,res,next){
                try {
                    let tmp = require('../views/index.marko');
                    let data = {
                        viewData: {
                            info: 'this is a test page'
                        }
                    };
                    await tmp.render(data, res);
                } catch (err) {
                    next(err);
                }
            }
        };
        